package com.freewater.springboot.demo.spel.inbeandef;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        applicationContext.registerShutdownHook();

        final SomeBean someBean = applicationContext.getBean(SomeBean.class);
        System.out.println(someBean.getRandomNum());
        System.out.println(someBean.getDefaultLocale());
    }
}
